package com.dorm.cj.persistence.sqlSession;

import com.dorm.cj.persistence.pojo.Configuration;

public class DefaultSqlSessionFactoryImpl implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactoryImpl(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSessionImpl(configuration);
    }
}
